package co.edu.unal.scrum.server.model;

// Generated Feb 19, 2011 2:36:40 PM by Hibernate Tools 3.3.0.GA

import java.util.Date;
import java.util.HashSet;
import java.util.Set;

import com.google.code.twig.annotation.Child;
import com.google.code.twig.annotation.Id;
import com.google.code.twig.annotation.Parent;

@SuppressWarnings("serial")
public class ProductBacklog implements java.io.Serializable {
	@Id
	private int id;
	@Parent
	private Project project;
	private String name;
	private Date startDate;
	private Date estEndDate;
	private Integer estStoryPoints;
	@Child
	private Set<ProductBacklogItem> productBacklogItems = new HashSet<ProductBacklogItem>(
			0);

	public ProductBacklog() {
	}

	public ProductBacklog(int id, Project project, String name, Date startDate,
			Date estEndDate, Integer estStoryPoints,
			Set<ProductBacklogItem> productBacklogItems) {
		super();
		this.id = id;
		this.project = project;
		this.name = name;
		this.startDate = startDate;
		this.estEndDate = estEndDate;
		this.estStoryPoints = estStoryPoints;
		this.productBacklogItems = productBacklogItems;
	}

	public int getId() {
		return id;
	}

	public void setId(int id) {
		this.id = id;
	}

	public Project getProject() {
		return project;
	}

	public void setProject(Project project) {
		this.project = project;
	}

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public Date getStartDate() {
		return startDate;
	}

	public void setStartDate(Date startDate) {
		this.startDate = startDate;
	}

	public Date getEstEndDate() {
		return estEndDate;
	}

	public void setEstEndDate(Date estEndDate) {
		this.estEndDate = estEndDate;
	}

	public Integer getEstStoryPoints() {
		return estStoryPoints;
	}

	public void setEstStoryPoints(Integer estStoryPoints) {
		this.estStoryPoints = estStoryPoints;
	}

	public Set<ProductBacklogItem> getProductBacklogItems() {
		return productBacklogItems;
	}

	public void setProductBacklogItems(
			Set<ProductBacklogItem> productBacklogItems) {
		this.productBacklogItems = productBacklogItems;
	}

}
